package com.windea.study.kotlin.javafx.helloworld2

import javafx.event.*
import javafx.fxml.*
import javafx.scene.control.*
import java.net.*
import java.time.*
import java.util.*

class MyController : Initializable {
	@FXML
	private lateinit var myButton: Button
	
	@FXML
	private lateinit var myTextField: TextField
	
	//NOTE 第二个参数是可空的
	override fun initialize(location: URL, resources: ResourceBundle?) {
	}
	
	fun showDateTime(event: ActionEvent?) {
		println("Button Clicked!")
		myTextField.text = LocalDateTime.now().toString()
	}
}
